﻿using NUnit.Framework;

namespace PhotoFramePublishingPlugin.Tests
{
    [TestFixture]
    public class ConfigurationSettingsModelTests
    {
        const string InitialDestinationRoot = @"D:\Temp";
        private static readonly ImageSize InitialImageSize = new ImageSize("Small", 800, 600);
        const bool InitialShouldAddBorders = false;
        const bool InitialShouldShortenFileNames = false;

        [Test]
        public void Constructor_InitializesProperties()
        {
            ConfigurationSettingsModel model = new ConfigurationSettingsModel(InitialImageSize.Width, InitialImageSize.Height, InitialDestinationRoot, InitialShouldAddBorders, InitialShouldShortenFileNames);

            Assert.AreEqual(InitialDestinationRoot, model.DestinationRoot);
            Assert.AreEqual(InitialImageSize, model.ImageSize);
            Assert.AreEqual(InitialShouldAddBorders, model.ShouldAddBorders);
            Assert.AreEqual(InitialShouldShortenFileNames, model.ShouldShortenFileNames);
        }
    }
}